package com.apex.crm.dao;

import com.apex.crm.base.BaseMapper;
import com.apex.crm.vo.UserRole;

public interface UserRoleMapper extends BaseMapper<UserRole,Integer> {
    int deleteByPrimaryKey(Integer id);

    int insert(UserRole record);

    //int insertSelective(UserRole record);

    UserRole selectByPrimaryKey(Integer id);

    //int updateByPrimaryKeySelective(UserRole record);

    int updateByPrimaryKey(UserRole record);


    //根据用户Id查询角色记录
    Integer countUserRoleByUserId(Integer userId);

    //根据用户Id删除角色记录
    Integer deleteUserRoleByUserId(Integer userId);

    int selectCountById(Integer roleId);

    Integer deleteUserRoleByRoleId(Integer roleId);
}